package oop_homework_6;

public class E {
	public static void main(String[] args) {
		SubCar aodi = new SubCar("奥迪",100000,400);
		System.out.println(aodi.toString());
		aodi.drive();
		aodi.speedChange(200);
		System.out.println(aodi.getMark()+"车现在的速度是 ："+aodi.getSpeed());
		SubCar benchi = new SubCar("奔驰",150000,360);
		System.out.println(benchi.toString());
		benchi.drive();
		benchi.speedChange(125);
		System.out.println(benchi.getMark()+"车现在的速度是 ："+benchi.getSpeed());
	}
}
